package com.zmn.oms.services.impl.order;

import com.zmn.oms.model.entity.order.OrderServiceReason;
import com.zmn.oms.persistence.interfaces.order.OrderServiceReasonDao;
import com.zmn.oms.services.interfaces.order.OrderServiceReasonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2022/03/28 15:48
 */
@Service
public class OrderServiceReasonServiceImpl implements OrderServiceReasonService {

    @Resource
    private OrderServiceReasonDao orderServiceReasonDao;

    @Override
    public OrderServiceReason findByKey(Long workId) {
        return orderServiceReasonDao.findByKey(workId);
    }

    @Override
    public void updateByKey(OrderServiceReason orderServiceReason) {
        orderServiceReasonDao.updateByKey(orderServiceReason);
    }

    @Override
    public void insert(OrderServiceReason orderServiceReason) {
        orderServiceReasonDao.insert(orderServiceReason);
    }
}
